#pragma once
#include "Sprite.h"
#include "PowerUp.h"
#include "GlobalVariables.h"
#include "Character.h"
#include <math.h>
#include "ExplosionManager.h"

class CWeaponCapsule : CCharacter
{
private:
	int _defaultY;
	CSprite *_Sprite;
	float _alpha;
	int _type;
	bool _startFlag;
	bool _IsDead;
	CPowerUp *_powerUp;
public:
	CWeaponCapsule(void);
	~CWeaponCapsule(void);
	void Spawn(D3DXVECTOR2 position, int type);
	void LoadResource(LPDIRECT3DDEVICE9 d3ddv, LPD3DXSPRITE &SpriteHandler, HINSTANCE hInstance, HWND hWnd);
	void Update(D3DXVECTOR2 ContraPosition);
	void Render(D3DXVECTOR2 ContraPositon);
	int GetType();
	void Destroy();
};

